#!/usr/bin/env python
#
# Bullet class, Koen Lefever 2010, GPL v.3 licensed
#
#
#####################################################################

import pygame
from pygame.locals import *         # http://www.pygame.org/
import TonkEngine                   # http://code.google.com/tonk-engine/
import math

class Bullet(TonkEngine.Sprite):
    def __init__(self, color, x = 0, y = 0, z = 5, angle = 0):
        if color == 'Red':
            tank_image_file = 'red_bullet.png'
        if color == 'Grey':
            tank_image_file = 'grey_bullet.png'
        if color == 'Blue':
            tank_image_file = 'blue_bullet.png'
        if color == 'Green':
            tank_image_file = 'green_bullet.png'
        if color == 'Yellow':
            tank_image_file = 'yellow_bullet.png'
        if color == 'Purple':
            tank_image_file = 'purple_bullet.png'
        TonkEngine.Sprite.__init__(self, x = x, y = y, z = z, angle = angle,
                                   imageslist = [], filelist = [tank_image_file], colorkey = -1,
                                   absolute = False, visible = False, auto_anim = False)
        
